package baltazar;

import java.awt.Color;
import java.awt.FlowLayout;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class SearchBar extends JPanel{
	
	private JTextField id = new JTextField(11);
	private JTextField firstname = new JTextField(11);
	private JTextField lastname = new JTextField(11);
	private JTextField city = new JTextField(11);
	private JTextField phonenumber = new JTextField(11);
	
	public SearchBar() {
		setLayout(new FlowLayout(FlowLayout.LEFT));
		id.setBorder(null);
		id.setBackground(new Color(230, 145, 56));
		add(id);
		firstname.setBorder(null);
		firstname.setBackground(new Color(230, 145, 56));
		add(firstname);
		lastname.setBorder(null);
		lastname.setBackground(new Color(230, 145, 56));
		add(lastname);
		city.setBorder(null);
		city.setBackground(new Color(230, 145, 56));
		add(city);
		phonenumber.setBorder(null);
		phonenumber.setBackground(new Color(230, 145, 56));
		add(phonenumber);
	}
	
	public JTextField getIDSearchField() {
		return id;
	}
	
	public JTextField getFirstNameSearchField() {
		return firstname;
	}
	
	public JTextField getLastNameSearchField() {
		return lastname;
	}
	
	public JTextField getCitySearchField() {
		return city;
	}
	
	public JTextField getPhoneNumberSearchField() {
		return phonenumber;
	}
	
}
